<!--
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author YDZ
-->
<template>
  <BasicDrawer
    v-bind="$attrs"
    :showFooter="false"
    :okAuth="'jh:plan:jhPlanArea:edit'"
    @register="registerDrawer"
    width="90%"
  >
    <template #title>
      <Icon :icon="getTitle.icon" class="m-1 pr-1" />
      <span> {{ getTitle.value }} </span>
    </template>
    <div>
      <invList />
    </div>
  </BasicDrawer>
</template>
<script lang="ts">
  export default defineComponent({
    name: 'ViewsRdRd32Rdrecord32InvDrawerList',
  });
</script>
<script lang="ts" setup>
  import { unref, defineComponent, ref, computed, defineEmits } from 'vue';
  import { useI18n } from '/@/hooks/web/useI18n';
  import { useMessage } from '/@/hooks/web/useMessage';
  import { router } from '/@/router';
  import { Icon } from '/@/components/Icon';
  import { BasicTable, BasicColumn, useTable } from '/@/components/Table';
  import { companyTreeData } from '/@/api/sys/company';
  import { useGlobSetting } from '/@/hooks/setting';
  import { downloadByUrl } from '/@/utils/file/download';
  import { useDrawer } from '/@/components/Drawer';
  import { useModal } from '/@/components/Modal';
  import { FormProps } from '/@/components/Form';
  import { BasicDrawer, useDrawerInner } from '/@/components/Drawer';
  import { listProspect } from '/@/api/wms/jh/plan/jhPlanArea';
  import { Table } from 'ant-design-vue';
  import invList from './invList.vue';
  const { t } = useI18n('rd.rd32.rdrecord32');
  const { showMessage } = useMessage();
  const { meta } = unref(router.currentRoute);
  const emit = defineEmits(['success', 'register']);

  const getTitle = {
    icon: meta.icon || 'i-ant-design:book-outlined',
    value: t('库存展望查询'),
  };

  // const [registerDrawer, { openDrawer }] = useDrawer();
  const [registerDrawer, { setDrawerProps, closeDrawer }] = useDrawerInner(async (data) => {
    setDrawerProps({ loading: true });
    // reload();
    setDrawerProps({ loading: false });
    console.log('data', data);
  });

</script>
<style scoped>
  .ant-input{
    border: 1px solid red !important;
  }
  .fontWeight-bold{
    font-weight: bold;
  }
</style>
